package com.MySSHProject.struts2.action;

import com.opensymphony.xwork2.ActionSupport;

/**
 * Created by toy on 15-11-5.
 */
public class LoginAction extends ActionSupport {
    private String account;            // 账号
    private String password;           // 密码

    public String execute() {
        if ("toy".equalsIgnoreCase(account) && "1234".equals(password)) {
            return SUCCESS;
        }
        return LOGIN;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
